package com.module.third.ext

import com.module.third.bus.PayBus
import com.module.third.qq.bean.QQUserInfo
import com.module.third.wx.bean.WxUserInfo
import kotlinx.coroutines.flow.MutableSharedFlow

/**
 *  双重校验锁式-单例   微信登录
 */
val wxLoginSharedFlow: MutableSharedFlow<WxUserInfo?> by lazy(mode = LazyThreadSafetyMode.SYNCHRONIZED) {
    MutableSharedFlow()
}

/**
 *  双重校验锁式-单例   qq登录
 */
val qqLoginSharedFlow: MutableSharedFlow<QQUserInfo?> by lazy(mode = LazyThreadSafetyMode.SYNCHRONIZED) {
    MutableSharedFlow()
}

/**
 *  双重校验锁式-单例   支付
 */
val payLiveSharedFlow: MutableSharedFlow<PayBus> by lazy(mode = LazyThreadSafetyMode.SYNCHRONIZED) {
    MutableSharedFlow()
}

